package com.firewolf.springcloud.service.hystrix;

import com.firewolf.springcloud.pojo.User;
import com.firewolf.springcloud.service.UserService;
import com.firewolf.springcloud.vo.ResponseVO;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：刘兴
 * 时间:19/2/15
 **/
@Component
public class UserServiceFail  implements UserService{
    @Override
    public List<User> findUsers() {
        return null;
    }

    @Override
    public ResponseVO add1(User user) {
        return null;
    }

    @Override
    public ResponseVO add2(Integer uid, String name) {
        System.out.println(uid+","+name);
        return ResponseVO.error("发起请求失败了...");
    }

    @Override
    public List<User> get() {
        return null;
    }

    @Override
    public List<User> get(User u) {
        return null;
    }

    @Override
    public List<User> get(Integer uid, String name) {
        return null;
    }

    @Override
    public ResponseVO delete(Integer uid, String uname) {
        return null;
    }
}
